Skip to content

fix(app-shell): the chart view's view bar starts its icon on the list page's 16px edge - #35826

Merged
objectstack-fleet[bot] merged 1 commit into
mainfrom
claude/project-thread-9bm9e9
Nov 20, 2026
Merged

objectstack-fleet[bot] merged 1 commit into
mainfrom
claude/project-thread-9bm9e9

Conversation

@objectstack-fleet

Copy link
Copy Markdown
Contributor

Requested by Bill · project thread
Fixes #35729

repo:objectstack#5 · os-bill · session_01Utp6Cb8qTxAVaE2QKwquQU

Clause-②: no
Metadata-protocol: none

维护者速读

What changes

  • The chart view's view bar takes the list view bar's padding (objectViewListRenderer.tsx, chartPage): sm:px-4 becomes sm:pl-2.5 sm:pr-2, the same values as TOOLBAR_ROW in plugin-list's listToolbarRow.ts (not imported: plugin-list's index does not export the constant, and exporting it was outside the claim). From sm up the switcher's 6px-padded icon lands on 16, where the list's does. Below sm both bars keep px-2, so 375 is unchanged.
  • The idle inSetup input goes end to end (claim amendment 2, 7036258221). Since 列表页左侧一条线对齐:勾选列在列多时被压到 16 宽并贴住屏幕左边;页面栏、视图栏、表格、页脚的左起点各不相同 #35663 removed the Setup app's row-number line, useObjectViewListRenderer read it only in the renderListView memo's dependency list. Removed: that dependency, the destructured prop and its type, the type-only isSetupAppSegment import (renderer); the derivation, its stale objectui#12606 comment, its pass and the isSetupAppSegment import (ObjectView.tsx). Remaining readers: none in either file. Other inSetup / isSetupAppSegment readers in app-shell (ResourceListPage, RecordDetailView) are their own and untouched.

Tests

  • ui/e2e/list-left-edge-35663.spec.ts (列表页左侧一条线对齐:勾选列在列多时被压到 16 宽并贴住屏幕左边;页面栏、视图栏、表格、页脚的左起点各不相同 #35663's geometry spec) gains a chart view bar: its class is read out of objectViewListRenderer.tsx at run time (the chartPage bar), and a second bar with that class, holding the real switcher class, sits under the list's view bar. At 1280 (wide and narrow cases) its icon is on the 16 edge and on the list view's icon (±1), and its right padding equals the list bar's; at 375 its icon equals the list's (and ≥12).
  • Ablation: with the bar's class put back to sm:px-4, the two 1280 cases go red (chart view-bar icon starts at 22, not 16); 375 and the scroll case stay green, as they should.
  • No unit test added: no vitest reads the chart bar's class or inSetup (grep over ui/packages/*/src for inSetup, isSetupAppSegment and sm:px-4 sm:py-0 beside ObjectView / objectViewListRenderer: 0 hits), and jsdom has no layout for the padding.

Acceptance notes

Readings (the e2e harness, main area 1024 wide beside a 256 sidebar at 1280; x from the main area's left):

list view icon chart view icon list bar right padding chart bar right padding
main 65fddc8, 1280 16 22 8 16
this PR, 1280 (wide and narrow) 16 16 8 8
main, 375 14 14 — —
this PR, 375 14 14 — —

Screenshots (1280 narrow, 1280 wide, 375; the fixture's icons are blank 16px boxes): objectstack-seat5/area-ux/ux-4/chart/card-35729/ in the project files.

Verification

Read first: ui/packages/app-shell/src/views/objectViewListRenderer.tsx, the chartPage bar class; then the inSetup removal in the same file and ObjectView.tsx.

Two-minute check: open an object with a chart view at 1280, switch between a list view and the chart view; the view switcher's icon stays put.

Local readings
  • Geometry spec: 4 passed at this head; ablated, 2 of 4 red as above.
  • pnpm --filter @object-ui/app-shell type-check: exit 0 (after pnpm --filter '@object-ui/app-shell^...' build).
  • vitest run packages/app-shell/src/views/ObjectView.: 93 files, 826 tests passed.
  • node scripts/pm/dispatch-gates.mjs --commands: 38 commands derived, all exit 0 (log gates-ran.log beside the screenshots)
  • node scripts/pm/overlap-check.mjs --branch=HEAD: clean (origin/main merges cleanly; feat(list): select a cell with a click, edit with a double-click, Enter or typing; no inline-edit toggle (#35684, #35687) #35747 shares objectViewListRenderer.tsx, merges cleanly).

🤖 Generated with Claude Code

https://claude.ai/code/session_01Utp6CasQ2sQyph6xUMdArZ

… page's 16px edge

The chart view's own copy of the view bar kept sm:px-4 after the list
view's bar moved to sm:pl-2.5 sm:pr-2, so at sm and up its view icon sat
at 22 while the list's sat at 16. It now carries the list bar's padding.
Below sm both keep px-2.

The list renderer's inSetup input, read only in a memo dependency list
since the Setup row-number line went, is removed end to end.

The list left-edge geometry spec gains a chart view bar, read from the
renderer's source, pinned to the list's view icon at 1280 and 375.

Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Utp6Cb8qTxAVaE2QKwquQU
@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#5 · os-bill · session_01Utp6Cb8qTxAVaE2QKwquQU

Final head · area ux-4 · 2026-11-20T10:36Z

Reading Value
Head e47a7987fcf43c33b7949e541fbdbcfd5a2a5178
CI 39 success, 13 skipped, 0 failed or pending
check-governed-merges --pr 35826 not governed, 73 lines
K (merge base..origin/main) 7 (< 15)
Surface 4 files, all within claim 7036143394 + amendment 2 (7036258221, ObjectView.tsx inSetup)

os-dev-report: 7037362599 on #35729. Chart view bar at 1280: icon 22 → 16 and right padding 16 → 8, the same as the list bar; 375 unchanged at 14. Pinned in ui/e2e/list-left-edge-35663.spec.ts; ablation turns the two 1280 cases red. inSetup is removed end to end. Deviation: the padding values are copied rather than importing TOOLBAR_ROW, which plugin-list's index does not export. Sent to L1-a.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#5 · os-bill · session_01Utp6CXsZsKmgG1EcKp5bY4

维护者速读

  • 列表切换到图表视图时,视图栏左侧的图标现在和列表视图在同一条 16px 线上,切换时不再左右跳动;右侧也和列表的视图栏对齐。
  • 手机宽度下两者保持一致。
  • 顺带删掉了一个已经没有用处的内部参数(以前用于在设置应用里隐藏行号)。
  • 自动化测试会从代码里读取图表视图栏的样式并量位置,改坏会报错。
  • 席位意见:通过,无需再改,分区可以合并。

席位核对

ACCEPT · head e47a7987fc · Fixes #35729 (p2, maintainer exception 09:37Z 「都可以派」; the R2 follow-up of my #35706 record 7029715490) · K=7 · merge-tree vs origin/main clean · governed 0/4 · 4 files, 73 lines · CI 39 success, 13 skipped, 0 pending · 2026-11-20T10:39Z

Routing: no packages/spec face, Clause-②: no, not governed → the area lands it.

Checked:

No required item.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#5 · os-bill · session_01Utp6Cb8qTxAVaE2QKwquQU

Landing · area ux-4 · 2026-11-20T10:40Z

Reading Value
check-governed-merges --pr 35826 not governed, 73 lines → ordinary queue landing
K (merge base..origin/main) 7 (< 15)
CI on head e47a7987fc 39 success, 13 skipped, 0 failed or pending; mergeable clean

Head e47a7987fcf43c33b7949e541fbdbcfd5a2a5178: L1-a ACCEPT 7037439238, with no required item. Copying the padding values is accepted because the e2e reads the class at run time, and the inSetup removal closes L1-a's #35706 nit. Ready + auto-merge now. #35729 closes on merge.

@objectstack-fleet
objectstack-fleet Bot marked this pull request as ready for review November 20, 2026 10:41
@objectstack-fleet
objectstack-fleet Bot added this pull request to the merge queue Nov 20, 2026
Merged via the queue into main with commit 0189004 Nov 20, 2026
53 checks passed
@objectstack-fleet
objectstack-fleet Bot deleted the claude/project-thread-9bm9e9 branch November 20, 2026 11:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation size/s tests tooling Fix lands in tooling, not a product package — enters pm:queue only with Unblocks: or a named surface

Projects

None yet

2 participants